% File naacl2016.sty
% September 4, 2015
% Contact: margarmitchell@gmail.com

% This is the LaTeX style file for NAACL HLT 2016.  
% Changes from previous years include:
% (1) Line numbers and confidentiality header for paper submissions
% (2) Bold-facing Title/Figure labels in captions
% (3) Shortening abovecaptionskip (from 10\p@ to 3\p@)
% Other than that,  it is nearly identical to the
% style files for NAACL HLT 2015, NAACL HLT 2012, NAACL HLT 2010, 
% ACL 2005, ACL 2002, ACL 2001, ACL 2000, EACL 95 and EACL 99. 
% -- Margaret Mitchell, 4th September 2015

% October 11, 2004
% Contact: oflazer@sabanciuniv.edu
% This is the LaTeX style file for NAACL HLT 2012.  It is nearly identical to the
% style files for NAACL HLT 2010, 
% ACL 2005, ACL 2002, ACL 2001, ACL 2000, EACL 95 and EACL 99. 
%
% This is the LaTeX style file for ACL 2000.  It is nearly identical to the
% style files for EACL 95 and EACL 99.  Minor changes include editing the
% instructions to reflect use of \documentclass rather than \documentstyle
% and removing the white space before the title on the first page
% -- John Chen, June 29, 2000

% This is the LaTeX style file for EACL-95.  It is identical to the
% style file for ANLP '94 except that the margins are adjusted for A4
% paper.  -- abney 13 Dec 94

% The ANLP '94 style file is a slightly modified
% version of the style used for AAAI and IJCAI, using some changes
% prepared by Fernando Pereira and others and some minor changes 
% by Paul Jacobs.

% Prepared by Peter F. Patel-Schneider, liberally using the ideas of
% other style hackers, including Barbara Beeton.
% This style is NOT guaranteed to work.  It is provided in the hope
% that it will make the preparation of papers easier.
%
% There are undoubtably bugs in this style.  If you make bug fixes,
% improvements, etc.  please let me know.  My e-mail address is:
%       pfps@research.att.com

% Papers are to be prepared using the ``acl'' bibliography style,
% e.g.:
%       \documentclass[11pt]{article}
%       \usepackage{naacl}
%       \title{Title}
%       \author{Author 1 \and Author 2 \\ Address line \\ Address line \And
%               Author 3 \\ Address line \\ Address line}
%       \begin{document}
%       ...
%       \bibliography{bibliography-file}
%       \bibliographystyle{naacl}
%       \end{document}

\typeout{Conference Style for NAACL-HLT 2016 -- released October 13, 2015}

% NOTE:  Some laser printers have a serious problem printing TeX output.
% These printing devices, commonly known as ``write-white'' laser
% printers, tend to make characters too light.  To get around this
% problem, a darker set of fonts must be created for these devices.

%% Physical page layout - slightly modified from IJCAI by pj %%
%% US Letter version of pay layout
\setlength\paperheight{11in}
\setlength\paperwidth{8.5in}
\setlength\topmargin{0.0in} 
\setlength\oddsidemargin{-0.0in}
\setlength\textheight{9.0in} 
\setlength\textwidth{6.5in}
\setlength\columnsep{0.2in}
\newlength\titlebox
\setlength\titlebox{2.25in}
\setlength\headheight{0pt}   
\setlength\headsep{0pt}
\setlength\footskip{0pt}
\thispagestyle{empty}      
\pagestyle{empty}
\flushbottom \twocolumn \sloppy

%% A4 version of page layout
%\setlength\topmargin{-0.45cm}    % changed by Rz  -1.4
%\setlength\oddsidemargin{.8mm}   % was -0cm, changed by Rz
%\setlength\textheight{23.5cm} 
%\setlength\textwidth{15.8cm}
%\setlength\columnsep{0.6cm}  
%\newlength\titlebox 
%\setlength\titlebox{2.00in}
%\setlength\headheight{5pt}   
%\setlength\headsep{0pt}
%%\setlength\footheight{0pt}
%\setlength\footskip{0pt}
%\thispagestyle{empty}        
%\pagestyle{empty}


%%%% ----- Begin settings for placing additional items into the submitted version --MM ----- %%%%

\newif\ifnaaclfinal
\naaclfinalfalse
\def\naaclfinalcopy{\global\naaclfinaltrue}

%% ----- Set up hooks to repeat content on every page of the output doc, 
%% necessary for the line numbers in the submitted version.  --MM
%%
%% Copied from CVPR 2015's cvpr_eso.sty, which appears to be largely copied from everyshi.sty.
%%
%% Original cvpr_eso.sty available at: http://www.pamitc.org/cvpr15/author_guidelines.php
%% Original evershi.sty available at: https://www.ctan.org/pkg/everyshi
%%
%% Copyright (C) 2001 Martin Schr\"oder:
%% 
%%                         Martin Schr"oder
%%                         Cr"usemannallee 3
%%                         D-28213 Bremen
%%                         Martin.Schroeder@ACM.org
%% 
%% This program may be redistributed and/or modified under the terms
%% of the LaTeX Project Public License, either version 1.0 of this
%% license, or (at your option) any later version.
%% The latest version of this license is in
%%    CTAN:macros/latex/base/lppl.txt.
%% 
%% Happy users are requested to send [Martin] a postcard. :-)
%%
\newcommand{\@EveryShipoutACL@Hook}{}
\newcommand{\@EveryShipoutACL@AtNextHook}{}
\newcommand*{\EveryShipoutACL}[1]
   {\g@addto@macro\@EveryShipoutACL@Hook{#1}}
\newcommand*{\AtNextShipoutACL@}[1]
   {\g@addto@macro\@EveryShipoutACL@AtNextHook{#1}}
\newcommand{\@EveryShipoutACL@Shipout}{%
   \afterassignment\@EveryShipoutACL@Test
   \global\setbox\@cclv= %
   }
\newcommand{\@EveryShipoutACL@Test}{%
   \ifvoid\@cclv\relax
      \aftergroup\@EveryShipoutACL@Output
   \else
      \@EveryShipoutACL@Output
   \fi%
   }
\newcommand{\@EveryShipoutACL@Output}{%
   \@EveryShipoutACL@Hook%
   \@EveryShipoutACL@AtNextHook%
      \gdef\@EveryShipoutACL@AtNextHook{}%
   \@EveryShipoutACL@Org@Shipout\box\@cclv%
   }
\newcommand{\@EveryShipoutACL@Org@Shipout}{}
\newcommand*{\@EveryShipoutACL@Init}{%
   \message{ABD: EveryShipout initializing macros}%
   \let\@EveryShipoutACL@Org@Shipout\shipout
   \let\shipout\@EveryShipoutACL@Shipout
   }
\AtBeginDocument{\@EveryShipoutACL@Init}

%% ----- Set up for placing additional items into the submitted version --MM
%%
%% Based on eso-pic.sty
%%
%% Original available at: https://www.ctan.org/tex-archive/macros/latex/contrib/eso-pic
%% Copyright (C) 1998-2002 by Rolf Niepraschk <niepraschk@ptb.de>
%% 
%% Which may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%%
%% In contrast to the original, we do not include the definitions for/using:
%% gridpicture, div[2], isMEMOIR[1], gridSetup[6][], subgridstyle{dotted}, labelfactor{}, gap{}, gridunitname{}, gridunit{}, gridlines{\thinlines}, subgridlines{\thinlines}, the {keyval} package, evenside margin, nor any definitions with 'color'.
%%
%% These are beyond  what is needed for the NAACL style.
%%
\newcommand\LenToUnit[1]{#1\@gobble}
\newcommand\AtPageUpperLeft[1]{%
  \begingroup
    \@tempdima=0pt\relax\@tempdimb=\ESO@yoffsetI\relax
    \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){#1}%
  \endgroup
}
\newcommand\AtPageLowerLeft[1]{\AtPageUpperLeft{%
  \put(0,\LenToUnit{-\paperheight}){#1}}}
\newcommand\AtPageCenter[1]{\AtPageUpperLeft{%
  \put(\LenToUnit{.5\paperwidth},\LenToUnit{-.5\paperheight}){#1}}}
\newcommand\AtPageLowerCenter[1]{\AtPageUpperLeft{%
  \put(\LenToUnit{.5\paperwidth},\LenToUnit{-\paperheight}){#1}}}%
\newcommand\AtPageLowishCenter[1]{\AtPageUpperLeft{%
  \put(\LenToUnit{.5\paperwidth},\LenToUnit{-.96\paperheight}){#1}}}
\newcommand\AtTextUpperLeft[1]{%
  \begingroup
    \setlength\@tempdima{1in}%
    \advance\@tempdima\oddsidemargin%
    \@tempdimb=\ESO@yoffsetI\relax\advance\@tempdimb-1in\relax%
    \advance\@tempdimb-\topmargin%
    \advance\@tempdimb-\headheight\advance\@tempdimb-\headsep%
    \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){#1}%
  \endgroup
}
\newcommand\AtTextLowerLeft[1]{\AtTextUpperLeft{%
  \put(0,\LenToUnit{-\textheight}){#1}}}
\newcommand\AtTextCenter[1]{\AtTextUpperLeft{%
  \put(\LenToUnit{.5\textwidth},\LenToUnit{-.5\textheight}){#1}}}
\newcommand{\ESO@HookI}{} \newcommand{\ESO@HookII}{}
\newcommand{\ESO@HookIII}{}
\newcommand{\AddToShipoutPicture}{%
  \@ifstar{\g@addto@macro\ESO@HookII}{\g@addto@macro\ESO@HookI}}
\newcommand{\ClearShipoutPicture}{\global\let\ESO@HookI\@empty}
\newcommand{\@ShipoutPicture}{%
  \bgroup
    \@tempswafalse%
    \ifx\ESO@HookI\@empty\else\@tempswatrue\fi%
    \ifx\ESO@HookII\@empty\else\@tempswatrue\fi%
    \ifx\ESO@HookIII\@empty\else\@tempswatrue\fi%
    \if@tempswa%
      \@tempdima=1in\@tempdimb=-\@tempdima%
      \advance\@tempdimb\ESO@yoffsetI%
      \unitlength=1pt%
      \global\setbox\@cclv\vbox{%
        \vbox{\let\protect\relax
          \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)%
            \ESO@HookIII\ESO@HookI\ESO@HookII%
            \global\let\ESO@HookII\@empty%
          \endpicture}%
          \nointerlineskip%
        \box\@cclv}%
    \fi
  \egroup
}
\EveryShipoutACL{\@ShipoutPicture}
\newif\ifESO@dvips\ESO@dvipsfalse 
\newif\ifESO@grid\ESO@gridfalse
\newif\ifESO@texcoord\ESO@texcoordfalse
\newcommand*\ESO@griddelta{}\newcommand*\ESO@griddeltaY{}
\newcommand*\ESO@gridDelta{}\newcommand*\ESO@gridDeltaY{}
\newcommand*\ESO@yoffsetI{}\newcommand*\ESO@yoffsetII{}
\ifESO@texcoord
  \def\ESO@yoffsetI{0pt}\def\ESO@yoffsetII{-\paperheight}
  \edef\ESO@griddeltaY{-\ESO@griddelta}\edef\ESO@gridDeltaY{-\ESO@gridDelta}
\else
  \def\ESO@yoffsetI{\paperheight}\def\ESO@yoffsetII{0pt}
  \edef\ESO@griddeltaY{\ESO@griddelta}\edef\ESO@gridDeltaY{\ESO@gridDelta}
\fi


%% ----- Submitted version markup: Page numbers, ruler, and confidentiality.  Using ideas/code from cvpr.sty 2015. --MM

\font\naaclhv  = phvb at 8pt 

%% Define vruler %%

%\makeatletter
\newbox\naaclrulerbox
\newcount\naaclrulercount
\newdimen\naaclruleroffset
\newdimen\cv@lineheight
\newdimen\cv@boxheight
\newbox\cv@tmpbox
\newcount\cv@refno
\newcount\cv@tot
% NUMBER with left flushed zeros  \fillzeros[<WIDTH>]<NUMBER>
\newcount\cv@tmpc@ \newcount\cv@tmpc
\def\fillzeros[#1]#2{\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi
\cv@tmpc=1 %
\loop\ifnum\cv@tmpc@<10 \else \divide\cv@tmpc@ by 10 \advance\cv@tmpc by 1 \fi
   \ifnum\cv@tmpc@=10\relax\cv@tmpc@=11\relax\fi \ifnum\cv@tmpc@>10 \repeat
\ifnum#2<0\advance\cv@tmpc1\relax-\fi
\loop\ifnum\cv@tmpc<#1\relax0\advance\cv@tmpc1\relax\fi \ifnum\cv@tmpc<#1 \repeat
\cv@tmpc@=#2\relax\ifnum\cv@tmpc@<0\cv@tmpc@=-\cv@tmpc@\fi \relax\the\cv@tmpc@}%
% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
\def\makevruler[#1][#2][#3][#4][#5]{\begingroup\offinterlineskip
\textheight=#5\vbadness=10000\vfuzz=120ex\overfullrule=0pt%
\global\setbox\naaclrulerbox=\vbox to \textheight{%
{\parskip=0pt\hfuzz=150em\cv@boxheight=\textheight
\cv@lineheight=#1\global\naaclrulercount=#2%
\cv@tot\cv@boxheight\divide\cv@tot\cv@lineheight\advance\cv@tot2%
\cv@refno1\vskip-\cv@lineheight\vskip1ex%
\loop\setbox\cv@tmpbox=\hbox to0cm{{\naaclhv\hfil\fillzeros[#4]\naaclrulercount}}%
\ht\cv@tmpbox\cv@lineheight\dp\cv@tmpbox0pt\box\cv@tmpbox\break
\advance\cv@refno1\global\advance\naaclrulercount#3\relax
\ifnum\cv@refno<\cv@tot\repeat}}\endgroup}%
%\makeatother

\def\naaclpaperid{***}
\def\confidential{NAACL 2016 Submission~\naaclpaperid.  Confidential review copy.  DO NOT DISTRIBUTE.}

%% Page numbering, Vruler and Confidentiality %%
% \makevruler[<SCALE>][<INITIAL_COUNT>][<STEP>][<DIGITS>][<HEIGHT>]
\def\naaclruler#1{\makevruler[13.73pt][#1][1][3][\textheight]\usebox{\naaclrulerbox}}
\def\leftoffset{-45pt}
\def\rightoffset{500pt}
\ifnaaclfinal\else\pagenumbering{arabic}
\AddToShipoutPicture{%
\ifnaaclfinal\else
\AtPageLowishCenter{\thepage}
\naaclruleroffset=\textheight
\advance\naaclruleroffset4pt
  \AtTextUpperLeft{%
    \put(\LenToUnit{\leftoffset},\LenToUnit{-\naaclruleroffset}){%left ruler
      \naaclruler{\naaclrulercount}}
    \put(\LenToUnit{\rightoffset},\LenToUnit{-\naaclruleroffset}){%right ruler
      \naaclruler{\naaclrulercount}}
  }
  \AtTextUpperLeft{%confidential
    \put(0,\LenToUnit{1cm}){\parbox{\textwidth}{\centering\naaclhv\confidential}}
  }
\fi
}

%%%% ----- End settings for placing additional items into the submitted version --MM ----- %%%%



%%%% ----- Begin settings for both submitted and camera-ready version ----- %%%%

%% Title and Authors %%

\newcommand\outauthor{
    \begin{tabular}[t]{c}
	\ifnaaclfinal 
	     \bf\@author
	\else 
		% Avoiding common accidental de-anonymization issue. --MM
     		\bf Anonymous NAACL submission
	\fi
    \end{tabular}}

% Changing the expanded titlebox for submissions to 2.5 in (rather than 6.5cm)
% and moving it to the style sheet, rather than within the example tex file. --MM
\ifnaaclfinal 
\else 
	\addtolength\titlebox{.25in}
\fi
% Mostly taken from deproc.
\def\maketitle{\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}}
   \twocolumn[\@maketitle] \@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
\def\@maketitle{\vbox to \titlebox{\hsize\textwidth
 \linewidth\hsize \vskip 0.125in minus 0.125in \centering
 {\Large\bf \@title \par} \vskip 0.2in plus 1fil minus 0.1in
 {\def\and{\unskip\enspace{\rm and}\enspace}%
  \def\And{\end{tabular}\hss \egroup \hskip 1in plus 2fil 
           \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}%
  \def\AND{\end{tabular}\hss\egroup \hfil\hfil\egroup
          \vskip 0.25in plus 1fil minus 0.125in
           \hbox to \linewidth\bgroup\large \hfil\hfil
             \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\bf}
  \hbox to \linewidth\bgroup\large \hfil\hfil
    \hbox to 0pt\bgroup\hss 
	\outauthor
   \hss\egroup
    \hfil\hfil\egroup}
  \vskip 0.3in plus 2fil minus 0.1in
}}

%% Abstract %%

\renewenvironment{abstract}{\centerline{\large\bf  
 Abstract}\vspace{0.5ex}\begin{quote} \small}{\par\end{quote}\vskip 1ex}
 
%% Bibliography %%

% Change how the bibliography entries are displayed/spaced.
\def\thebibliography#1{\small\vskip\parskip%
\vskip\baselineskip%
\def\baselinestretch{1}%
\ifx\@currsize\normalsize\@normalsize\else\@currsize\fi%
\vskip-\parskip%
\vskip-\baselineskip%
\section*{References\@mkboth
 {References}{References}}\list
 {}{\setlength{\labelwidth}{0pt}\setlength{\leftmargin}{\parindent}
 \setlength{\itemsep}{-0.5ex}
 \setlength{\itemindent}{-\parindent}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

% Don't put a label in the bibliography at all.  
% Just use the unlabeled format instead.
\def\@lbibitem[#1]#2{\item[]\if@filesw 
      { \def\protect##1{\string ##1\space}\immediate
        \write\@auxout{\string\bibcite{#2}{#1}}\fi\ignorespaces}}

\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
       {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces}

%% Citations %%

% most of cite format was from aclsub.sty by SMS
% don't box citations, separate with ; and a space
% Replaced for multiple citations (pj) 
% don't box citations and also add space, semicolon between multiple citations
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
     {\@citea\def\@citea{; }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
        {Citation `\@citeb' on page \thepage \space undefined}}%
 {\csname b@\@citeb\endcsname}}}{#1}}

% Allow short (name-less) citations, when used in
% conjunction with a bibliography style that creates labels like
%       \citename{<names>, }<year>
\let\@internalcite\cite
\def\cite{\def\citename##1{##1, }\@internalcite}
\def\shortcite{\def\citename##1{}\@internalcite}
\def\newcite{\def\citename##1{{\frenchspacing##1} (}\@internalciteb}

% Macros for \newcite, which leaves name in running text, and is
% otherwise like \shortcite.
\def\@citexb[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@newcite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{;\penalty\@m\ }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
\def\@internalciteb{\@ifnextchar [{\@tempswatrue\@citexb}{\@tempswafalse\@citexb[]}}

\def\@newcite#1#2{{#1\if@tempswa, #2\fi)}}
\def\@biblabel#1{\def\citename##1{##1}[#1]\hfill}

% Use parentheses instead of square brackets in the text. --  SMS (originals in latex.tex)
\def\@cite#1#2{({#1\if@tempswa , #2\fi})}

%% Sections %%

% sections with less space than is inherited
\def\section{\@startsection {section}{1}{\z@}{-2.0ex plus
    -0.5ex minus -.2ex}{1.5ex plus 0.3ex minus .2ex}{\large\bf\raggedright}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-1.8ex plus
    -0.5ex minus -.2ex}{0.8ex plus .2ex}{\normalsize\bf\raggedright}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{1.5ex plus
   0.5ex minus .2ex}{0.5ex plus .2ex}{\normalsize\bf\raggedright}}
\def\paragraph{\@startsection{paragraph}{4}{\z@}{1.5ex plus
   0.5ex minus .2ex}{-1em}{\normalsize\bf}}
\def\subparagraph{\@startsection{subparagraph}{5}{\parindent}{1.5ex plus
   0.5ex minus .2ex}{-1em}{\normalsize\bf}}

%% Footnotes %% 

\footnotesep 6.65pt %
\skip\footins 9pt plus 4pt minus 2pt
\def\footnoterule{\kern-3pt \hrule width 5pc \kern 2.6pt }
\setcounter{footnote}{0}

%% Lists and paragraphs %% 

\parindent 1em
\topsep 4pt plus 1pt minus 2pt
\partopsep 1pt plus 0.5pt minus 0.5pt
\itemsep 2pt plus 1pt minus 0.5pt
\parsep 2pt plus 1pt minus 0.5pt

\leftmargin 2em \leftmargini\leftmargin \leftmarginii 2em
\leftmarginiii 1.5em \leftmarginiv 1.0em \leftmarginv .5em \leftmarginvi .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep \labelsep 5pt

\def\@listi{\leftmargin\leftmargini}
\def\@listii{\leftmargin\leftmarginii
   \labelwidth\leftmarginii\advance\labelwidth-\labelsep
   \topsep 2pt plus 1pt minus 0.5pt
   \parsep 1pt plus 0.5pt minus 0.5pt
   \itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
    \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
    \topsep 1pt plus 0.5pt minus 0.5pt 
    \parsep \z@ \partopsep 0.5pt plus 0pt minus 0.5pt
    \itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv
     \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
     \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
     \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}

\abovedisplayskip 7pt plus2pt minus5pt%
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip  0pt plus3pt%   
\belowdisplayshortskip  4pt plus3pt minus3pt%

% Less leading in most fonts (due to the narrow columns)
% The choices were between 1-pt and 1.5-pt leading
%\def\@normalsize{\@setsize\normalsize{11pt}\xpt\@xpt}
%\def\small{\@setsize\small{10pt}\ixpt\@ixpt}
%\def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt}
%\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
%\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
%\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
%\def\Large{\@setsize\Large{16pt}\xivpt\@xivpt}
%\def\LARGE{\@setsize\LARGE{20pt}\xviipt\@xviipt}
%\def\huge{\@setsize\huge{23pt}\xxpt\@xxpt}
%\def\Huge{\@setsize\Huge{28pt}\xxvpt\@xxvpt}

%% Captions %%

% Changes definition inherited from article.cls. --MM
\setlength\abovecaptionskip{3\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
   \sbox\@tempboxa{\footnotesize {\bf #1:} #2}%
   \ifdim \wd\@tempboxa >\hsize
     {\footnotesize {\bf #1:} #2}\par
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}


%% Minor details %%

\newcommand{\Thanks}[1]{\thanks{\ #1}}
   
% Add a period to the end of an abbreviation unless there's one
% already, then remove the extra space that latex will add 
% (handles latex bug where all periods are treated as end-of-sentence markers) --MM
\DeclareRobustCommand\onedot{\futurelet\@let@token\@onedot}
\def\@onedot{\ifx\@let@token.\else.\null\fi~}
\DeclareRobustCommand\dotcomma{\futurelet\@let@token\@dotcomma}
\def\@dotcomma{\ifx\@let@token.,\else.,\null\fi~}


\def\esp{esp\onedot} \def\Esp{Esp\onedot}

% pdflatex ignores letterpaper option
\ifx\pdfoutput\undefined % LaTeX is used, pdf sizes are undefined
\else% pdfLaTeX is used, pds sizes are defined
   \pdfpagewidth 8.5in
   \pdfpageheight 11in
\fi